import $axios from './index.js'

function serverList(data) {
  const url = '/server/list'
  return $axios.get(url, data)
}
function addServer(data) {
  const url = '/server/add'
  return $axios.post(url, data)
}
function editServer(data) {
  const url = '/server/edit'
  return $axios.post(url, data)
}

function deleteServer(data) {
  const url = '/server/del'
  return $axios.post(url, data)
}

export default {
  serverList,
  addServer,
  editServer,
  deleteServer
}
